 if (stristr($steamid_entry, "STEAM_0:")) { $getmode = 0; } elseif (stristr($steamid_entry, "765611")) { $getmode = 1; } else { $getmode = 1; }

if ($getmode == 1) {
$xml = @simplexml_load_file("http://www.steamcommunity.com/profiles/$steamid_entry/?xml=1", 'SimpleXMLElement', LIBXML_NOCDATA);
} elseif ($getmode == 2) {
$xml = @simplexml_load_file("http://www.steamcommunity.com/id/$steamid_entry/?xml=1", 'SimpleXMLElement', LIBXML_NOCDATA);
} else {
    $xml = @simplexml_load_file("http://www.steamcommunity.com/profiles/$communty_id/?xml=1", 'SimpleXMLElement', LIBXML_NOCDATA);
}